<div class='admin-signin-form'>
  <h2> 登录 </h2>
  <%= simple_form_for(resource, :as => resource_name, :url => admin_session_path(resource_name), :defaults => { :input_html => { :class => "form-control" } }, html: {class: 'form-horizontal'}) do |f| %>
    <fieldset>
      <%= f.input :email, :required => false, :autofocus => true, label: '邮箱' %>
      <%= f.input :password, :required => false, label: '密码' %>
      <%= f.input(:remember_me, :as => :boolean, label: '记住我', input_html: { class: ''}) if devise_mapping.rememberable? %>
      <%= f.button :submit, "登录", class: 'btn btn-primary col-md-offset', disable_with: '登录中...' %>
    </fieldset>
  <% end %>
</div>

